package com.cooba.bean;

import java.util.List;

/**
 * Created by Administrator on 2015/12/30.
 * 视频
 */
public class VideoBeans {

    public List<VideoListEntity> videoList;

    public VideoBeans(List<VideoListEntity> VideoList) {
        videoList = VideoList;
    }

    public void setVideoList(List<VideoListEntity> videoList) {
        this.videoList = videoList;
    }

    public List<VideoListEntity> getVideoList() {
        return videoList;
    }

    public String next_key;

    public static class VideoListEntity {
        public String id;
        private String category_id;
        private String content;
        private String create_time;
        private String description;
        private String img_url;
        private String intro;
        private String title;
        private String video_page_url;
        private int duration;
        private int view;
        private String watch_time;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public void setCategory_id(String category_id) {
            this.category_id = category_id;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public void setImg_url(String img_url) {
            this.img_url = img_url;
        }

        public void setIntro(String intro) {
            this.intro = intro;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public void setVideo_page_url(String video_page_url) {
            this.video_page_url = video_page_url;
        }

        public String getCategory_id() {
            return category_id;
        }

        public String getContent() {
            return content;
        }

        public String getCreate_time() {
            return create_time;
        }

        public String getDescription() {
            return description;
        }

        public String getImg_url() {
            return img_url;
        }

        public String getIntro() {
            return intro;
        }

        public String getTitle() {
            return title;
        }

        public String getVideo_page_url() {
            return video_page_url;
        }

        public int getDuration() {
            return duration;
        }

        public void setDuration(int duration) {
            this.duration = duration;
        }

        public int getView() {
            return view;
        }

        public void setView(int view) {
            this.view = view;
        }

        public String getWatch_time() {
            return watch_time;
        }

        public void setWatch_time(String watch_time) {
            this.watch_time = watch_time;
        }

        @Override
        public boolean equals(Object obj) {
            if (obj instanceof VideoListEntity) {
                VideoListEntity entity = (VideoListEntity) obj;
                System.out.println("equal"+ entity.title);
                return (title.equals(entity.title));
            }
            return super.equals(obj);
        }

        public int hashCode() {
            VideoListEntity entity = (VideoListEntity) this;
            System.out.println("Hash" + entity.title);
            return title.hashCode();

        }
    }

    public String getNext_key() {
        return next_key;
    }

    public void setNext_key(String next_key) {
        this.next_key = next_key;
    }
}
